﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using efish.Framework.Web;
using efish.Framework.Model;
using efish.Framework.Service;

public partial class Controls_ListCategories : BaseControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public IList<Category> Categories
    {
        set
        {
            if (value != null)
            {
                this.listctrl.DataSource = value;
            }
        }
    }

    private string _detailUrl = "/store/ShowCategory.aspx?ID={0}";
    public string DetailUrl
    {
        get { return _detailUrl; }
        set { _detailUrl = value; }
    }

    private string _editUrl = "/admin/EditCategoy.aspx?ID={0}";
    public string EditUrl
    {
        get { return _editUrl; }
        set { _editUrl = value; }
    }
}
